package cn.bsuc.infirmary.domain;


import cn.bsuc.infirmary.util.JSONUtil;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

/**
 * 字典明细管理
 */
@Setter
@Getter
public class Systemdictionaryitem extends Basedomain {

    private Long parentId;

    private String title;

    private Integer sequence;

    public String getJson() {
        HashMap<String, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("parentId", parentId);
        map.put("title", title);
        map.put("sequence", sequence);
        return JSONUtil.toJSONString(map);
    }
}